# 图形可视化库
import matplotlib.pyplot as plt

x = [i for i in range(1,11)]
y = [i for i in range(2,12)]

# 连续图
plt.figure(figsize=(5,5))#定义大小
plt.plot(x,y)
plt.title('y = x+1')
plt.xlabel('x')
plt.ylabel('y')
plt.show()


plt.figure(figsize=(5,5))#定义大小
plt.scatter(x,y)# 散点图
plt.title('y = x+1')
plt.xlabel('x')
plt.ylabel('y')
plt.show()